package com.bawei.es.service;

import com.bawei.common.core.domain.R;
import com.bawei.system.domain.vo.EsDocInsertVo;
import com.bawei.system.domain.vo.EsDocQueryVo;
import com.bawei.common.core.utils.PageResult;
import com.bawei.mall.product.domain.dto.EsDocFindDTO;
import com.bawei.mall.product.domain.vo.EsDocFindVO;
import com.bawei.system.domain.vo.EsDocInsertVo;
import com.bawei.system.domain.vo.EsDocQueryVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface EsDocService {
    R<Boolean> batchInsertDocs(List<EsDocInsertVo> esDocInsertVo);

    R queryDocs(EsDocQueryVo esDocInsertVo);


    void batch(List<EsDocInsertVo> esDocInsertVos);

    void del(String indexName,Long id);

    R querySuggestions(String indexName,String keyWord,String suggestFiled);

    R<PageResult<EsDocFindDTO>> findEsDocs(EsDocFindVO esDocFindVO);

}
